package com.cn.wanxi.consumer.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;
import java.time.LocalDateTime;


/**
 * <p>
 * 后台用户表
 * </p>
 *
 * @author 吉酱
 * @since 2022-09-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("wx_user")
public class User {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String username;

    private String password;

    /**
     * 头像
     */
    private String icon;

    /**
     * 邮箱
     */
    private String email;

    @TableField("nick_name")
    /**
     * 昵称
     */
    private String nickName;

    /**
     * 备注信息
     */
    private String note;

    @TableField("create_time")
    /**
     * 创建时间
     */
    private Timestamp createTime;

    /**
     * 最后登录时间
     */
    @TableField("login_time")
    private Timestamp loginTime;

    /**
     * 帐号启用状态：0->禁用；1->启用
     */
    private Integer status;

}
